package com.shtel.bss.saas.tenant.service;

import com.github.pagehelper.PageInfo;
import com.shtel.bss.saas.core.data.common.service.IDataService;
import com.shtel.bss.saas.tenant.bo.SysUserBo;

/**
 * 用户表服务
 *
 * @author xiezhiwei 2020-02-05 22:02
 */
public interface ISysUserService extends IDataService {
    /**
     * 查询用户列表
     */
    PageInfo<SysUserBo> qrySysUserList(SysUserBo sysUserBo, int pageNum, int pageSize);

    /**
     * 查询用户
     */
    SysUserBo qrySysUser(SysUserBo sysUserBo);

    /**
     * 保存用户
     */
    void saveSysUser(SysUserBo sysUserBo);

    /**
     * 修改用户
     */
    void updateSysUser(SysUserBo sysUserBo);

    /**
     * 删除用户
     */
    void removeSysUser(Long userId);

    /**
     * 用户登录
     * @param account
     * @param password
     * @return
     */
    SysUserBo login(String account,String password);
}
